package com.itbac.skywalkingdemo.controller;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author: BacHe
 * @Date: 2021/3/14 16:17
 */
@RestController
public class MyController {
    @RequestMapping("/sayHello")
    public String sayHello(){
        return "Hello skywalking";
    }
    @RequestMapping("/exception")
    public String exception(){
        //故意来一个异常，让你监控
        int i = 1/0;
        return "exception";
    }
}
